package com.phoxell;

import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings({"serial"})
public class PageServlet extends HttpServlet{
	public void doGet(HttpServletRequest req,HttpServletResponse rsp)
			throws IOException{
		PageFrame p=new PageFrame(rsp);
		p.begin();
		try{
			doGet(req,p);
		}catch(IOException e){
			throw e;
		}catch(Exception e){
			e.printStackTrace();
		}
		p.end();
	}
	public void doGet(HttpServletRequest req,PageFrame page)throws Exception{
	}
	public void doPut(HttpServletRequest req,HttpServletResponse rsp)
			throws IOException{
		try{
			PageFrame p=new PageFrame(rsp);
			p.begin();
			doPut(req,p);
			p.end();
		}catch(IOException e){
			throw e;
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	public void doPut(HttpServletRequest req,PageFrame page)throws Exception{
	}
}